package com.pulse.base.controller;

import com.pulse.base.domain.DeviceType;
import com.pulse.base.service.IDeviceTypeService;
import com.pulse.common.core.controller.BaseController;
import com.pulse.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/base/deviceType")
public class DeviceTypeController extends BaseController {
    @Autowired
    private IDeviceTypeService deviceTypeService;

    /**
     * 查询设备类型列表
     */
    @GetMapping("/list")
    public AjaxResult list()
    {
        List<DeviceType> list = deviceTypeService.selectDeviceTypeList();
        return success(list);
    }
}
